868e18b
@@ -110,7 +110,7 @@
void findUnknownTables(String dbName, List<String> tables,
       Table table = hive.getTable(dbName, tableName);
       // hack, instead figure out a way to get the db paths
       String isExternal = table.getParameters().get("EXTERNAL");
-      if (isExternal == null || "TRUE".equalsIgnoreCase(isExternal)) {
+      if (isExternal == null || !"TRUE".equalsIgnoreCase(isExternal)) {
         dbPaths.add(table.getPath().getParent());
       }
     }
